<?php
/***************
* @Project	Warabi
* @Author	Feifei
* @Date		04/06/2009
***************/

/**this module deals the database 
	*transfer issues
   */
include($_SERVER['DOCUMENT_ROOT']."config.php");

class database{
	
	/**database handler**/
	var $dbhandler;

	/**construct**/
	function database(){
		$this->dbhandler = new mysqli($DBserver , $DBuser , $DBpassword , $DBname , $DBport);
		/**check the connection**/
		if(mysqli_connect_errno()){
			printf("Connection failed : %s\n" , mysqli_connect_error());
			exit();
		}

		printf("Host information : %s\n" , $this->dbhandler->host_info);

		/**close the connection**/
		$this->dbhandler->close();
	}
}

$mydb = new database();

?>